fix ACTIVE state of scroll buttons (we were setting the state to ACTIVE
authorMichael Natterer <mitch@imendio.com>
Wed, 25 Apr 2007 12:11:08 +0000 (12:11 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Wed, 25 Apr 2007 12:11:08 +0000 (12:11 +0000)
commit4a741888346db0afde9968dd6eb222eb46b7341f
treeef9cd28ed103eb677861869a00fcca87c74c460a
parent653a03c218f1a308ba437661fdc56ad91d969a91
fix ACTIVE state of scroll buttons (we were setting the state to ACTIVE

2007-04-25  Michael Natterer  <mitch@imendio.com>

* gtk/gtkmenu.c (gtk_menu_handle_scrolling): fix ACTIVE state of
scroll buttons (we were setting the state to ACTIVE but
immediately overwriting it with NORMAL or PRELIGHT). Also got rid
of many separate calls to gdk_window_invalidate_rect() by
remembering the old button state and only invalidating the area if
the state has changed (addresses parts of bug #433242, Tommi
Komulainen).

(gtk_menu_scroll_to): change the arrow states only if changing
from or to INSENSITIVE state, so we don't overwrite the ACTIVE
state set by above function.

svn path=/trunk/; revision=17630
ChangeLog
gtk/gtkmenu.c